package com.dy.cc;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("confirm_order")
@ApiModel(value = "ConfirmOrder对象", description = "")
public class confirmOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "确认订单主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联接收地址表（receiving_address）主键id")
    private Integer rid;

    @ApiModelProperty(value = "关联订单表（order）主键id")
    private Integer oid;

    @ApiModelProperty(value = "订单留言")
    private String orderMessage;

    @ApiModelProperty(value = "总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "关联用户表（user）主键id")
    private Integer uid;

    @ApiModelProperty(value = "0未支付、1待支付、2已支付、3待收货、4待评价")
    private Integer state;

    @ApiModelProperty(value = "支付时间")

    private LocalDateTime paymentTime;


    @TableField(exist = false)
    private String oname;

    @TableField(exist = false)
    private String num;

}
